package com.awanp3.nimbus.wms.fg.domain.vo;

import com.awanp3.nimbus.wms.fg.domain.WmsCountingOrderInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 盘点单视图对象 wms_counting_order_info
 *
 * @author 20014170
 * @date 2025-09-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WmsCountingOrderInfo.class)
public class WmsCountingOrderInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 盘点单号
     */
    @ExcelProperty(value = "盘点单号")
    private String countingOrderNo;

    /**
     * 盘点行项目号
     */
    @ExcelProperty(value = "盘点行项目号")
    private String countingOrderItem;

    /**
     * 盘点类型(1物料 2Bin位)
     */
    @ExcelProperty(value = "盘点类型(1物料 2Bin位)")
    private String countingType;

    /**
     * 物料号
     */
    @ExcelProperty(value = "物料号")
    private String materialCode;

    /**
     * 物料描述
     */
    @ExcelProperty(value = "物料描述")
    private String materialDesc;

    /**
     * 基本单位
     */
    @ExcelProperty(value = "基本单位")
    private String baseUnit;

    /**
     * 库存数量
     */
    @ExcelProperty(value = "库存数量")
    private Long stockQty;

    /**
     * 已盘数量
     */
    @ExcelProperty(value = "已盘数量")
    private Long countedQty;

    /**
     * 工厂
     */
    @ExcelProperty(value = "工厂")
    private String plantCode;

    /**
     * 库位
     */
    @ExcelProperty(value = "库位")
    private String locationCode;

    /**
     * 货位
     */
    @ExcelProperty(value = "货位")
    private String binCode;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 状态（0正常 1停用 2开启 3关闭）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用,2=开启,3=关闭")
    private String status;


}
